<?php
return array(
	'searchColumns' => array(
		'title',
		'provider_id' => array(
			'dropDownList', Yii::app()->enum->options('worker.provider'),
			'visible' => 'Yii::app()->adminUser->role != AdminUser::ROLE_PROVIDER',
		),
		'dealer_id' => array(
			'dropDownList', Yii::app()->enum->options('worker.dealer'),
			'visible' => 'Yii::app()->adminUser->role != AdminUser::ROLE_DEALER',
		),
	),
	'dataColumns' => array(
//		'id',
	 	'title',
		array(
			'name' => 'dealer.worker_name',
			'visible' => Yii::app()->adminUser->role != AdminUser::ROLE_DEALER,
		),
		array(
			'name' => 'provider.worker_name',
			'visible' => Yii::app()->adminUser->role != AdminUser::ROLE_PROVIDER,
		),
		'price_market',
		'price_dealer',
		array(
			'name' => 'price_agent',
			'visible' => Yii::app()->adminUser->role != AdminUser::ROLE_DEALER,
		),
		/*array(
			'header' => '操作',
			'class' => 'ButtonColumn',
			'template' => '{order}',
			'buttons' => array(
				'order' => array(
					'label' => '下单',
					'url' => 'Yii::app()->controller->createUrl("order",array("id"=>$data->id))',
				),
			),
		),*/
	),
	'operates' => false,
	'_import' => array(
		array('*', 'actions.admin//*'),
	),
);
?>